package com.example.graduation.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * @author Jeffery
 * Hr-table
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("hr")
public class Hr implements Serializable {
    @ApiModelProperty(value = "hr  id")
    @TableId(value = "hr_id")
    private String id;

    @ApiModelProperty(value = "公司id")
    @TableField(value = "company_id")
    private String cId;

    @ApiModelProperty(value = "hr邮箱")
    @TableField(value = "hr_email")
    private String email;

    @ApiModelProperty(value = "hr创建时间")
    @TableField(value = "hr_create_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    @ApiModelProperty(value = "hr修改时间")
    @TableField(value = "hr_update_time", fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;

    @ApiModelProperty(value = "hr version")
    @TableField(value = "hr_version")
    private int version;

    @ApiModelProperty(value = "hr逻辑删除 0:未删除 1:已删除")
    @TableField(value = "hr_has_deleted")
    private int isDeleted;
}
